package com.liustar.jpush;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Leo
 * @date 2017/7/21
 */
public class PushData implements Serializable {
    private static final long serialVersionUID = -4194578774941601965L;

    public PushData(String bizType) {
        this.bizData = new HashMap();
        this.bizData.put("bizType", bizType);
    }

    private Map bizData;
    private String platform = "all";
    private String title = "";
    /**
     * 消息内容
     */
    private String message = "";
    /**
     * 短信补漏
     */
    private String smsMessage = "";
    /**
     * 延迟5分钟
     */
    private Integer delayTime = 300;
    /**
     * 消息类型
     */
    private String contentType;
    /**
     * 通知内容
     */
    private String notification;
    private String alias;
    private String tagAnd;
    private String tagNot;
    private String tag;
    private String regid;
    private List<String> aliases;
    private List<String> tagAnds;
    private List<String> tagNots;
    private List<String> tags;
    private List<String> regIds;
    /**
     * 分组
     */
    private String segment = "";

    private Long timeToLive = 0L;
    private Long msgId;

    public Integer getDelayTime() {
        return delayTime;
    }

    public void setDelayTime(Integer delayTime) {
        this.delayTime = delayTime;
    }

    public Map getBizData() {
        return bizData;
    }

    public void setBizData(Map bizData) {
        this.bizData = bizData;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getTagAnd() {
        return tagAnd;
    }

    public void setTagAnd(String tagAnd) {
        this.tagAnd = tagAnd;
    }

    public String getTagNot() {
        return tagNot;
    }

    public void setTagNot(String tagNot) {
        this.tagNot = tagNot;
    }

    public List<String> getTagAnds() {
        return tagAnds;
    }

    public void setTagAnds(List<String> tagAnds) {
        this.tagAnds = tagAnds;
    }

    public List<String> getTagNots() {
        return tagNots;
    }

    public void setTagNots(List<String> tagNots) {
        this.tagNots = tagNots;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getRegid() {
        return regid;
    }

    public void setRegid(String regid) {
        this.regid = regid;
    }

    public String getSegment() {
        return segment;
    }

    public void setSegment(String segment) {
        this.segment = segment;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<String> getAliases() {
        return aliases;
    }

    public void setAliases(List<String> aliases) {
        this.aliases = aliases;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public List<String> getRegIds() {
        return regIds;
    }

    public void setRegIds(List<String> regIds) {
        this.regIds = regIds;
    }

    public Long getTimeToLive() {
        return timeToLive;
    }

    public void setTimeToLive(Long timeToLive) {
        this.timeToLive = timeToLive;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public Long getMsgId() {
        return msgId;
    }

    public void setMsgId(Long msgId) {
        this.msgId = msgId;
    }

    public String getNotification() {
        return notification;
    }

    public void setNotification(String notification) {
        this.notification = notification;
    }

    public String getSmsMessage() {
        return smsMessage;
    }

    public void setSmsMessage(String smsMessage) {
        this.smsMessage = smsMessage;
    }

    @Override
    public String toString() {
        return "PushData{" +
                "bizData=" + bizData +
                ", platform='" + platform + '\'' +
                ", title='" + title + '\'' +
                ", message='" + message + '\'' +
                ", smsMessage='" + smsMessage + '\'' +
                ", delayTime=" + delayTime +
                ", contentType='" + contentType + '\'' +
                ", notification='" + notification + '\'' +
                ", alias='" + alias + '\'' +
                ", tagAnd='" + tagAnd + '\'' +
                ", tagNot='" + tagNot + '\'' +
                ", tag='" + tag + '\'' +
                ", regid='" + regid + '\'' +
                ", aliases=" + aliases +
                ", tagAnds=" + tagAnds +
                ", tagNots=" + tagNots +
                ", tags=" + tags +
                ", regIds=" + regIds +
                ", segment='" + segment + '\'' +
                ", timeToLive=" + timeToLive +
                ", msgId=" + msgId +
                '}';
    }
}

